/*****************************************************************************
Copyright 2006 Kervin L. Pierre
    EMAIL: otlkcon@adevsoft.com

This file is part of Otlkcon.

Otlkcon is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

Otlkcon is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Lesser GNU General Public License for more details.

You should have received a copy of the Lesser GNU General Public License
along with Otlkcon; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*******************************************************************************/


#ifndef OTLKCON_REGISTRY_H
#define OTLKCON_REGISTRY_H

#include <windows.h>
#include <mapi.h>
#include <otlkcon_config.h>
#include <mapispi.h>

#include <otlkcon_results.h>
#include <otlkcon_print.h>

char *otlkcon_registryGetStr(LPALLOCATEBUFFER lpAllocateBuffer, HKEY reg, char *key );
int otlkcon_registryGetInt( HKEY reg, char *key );
OTLKCON_RESULT_TYPE otlkcon_registrySetStr( HKEY reg, char *key, char *value );
OTLKCON_RESULT_TYPE otlkcon_registrySetInt( HKEY reg, char *key, int value );
HKEY otlkcon_registryInit(LPALLOCATEBUFFER lpAllocateBuffer, DWORD access, char *subKey);
void otlkcon_registryDispose(HKEY hk);

bool otlkcon_registryGetStrW(HKEY reg, wchar_t *key,  wchar_t *lpszBuffer, size_t cchBufferLength);

#endif /* OTLKCON_REGISTRY_H */